package cn.stard.feign;

import cn.stard.domian.Store;
import cn.stard.util.ajx;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(name="store-server",fallbackFactory = fack.class)
public interface Storefeign {
    @PostMapping("store/add")
    public ajx add(@RequestBody Store store);
}
